#!/bin/bash

file="cipar10.py"
while getopts 'ief:' OPT; do
    case $OPT in
        e)
            edit=1
            ;;
        i)
            init=1  
            ;;
        f)
            file="$OPTARG"
            ;;
        ?)
            exit
    esac
done

if [ "$init" != "1" ];then
ln -s /input/dataset ./data
pip install -r requerments.txt
fi


if [ "$edit" != "1" ];then
    echo -e "\n\n\n\n\nrun python -u $file\n......"
    python -u $file
fi
